<?php

include_once './config.php';
$id = $_GET['id'];
$id = any2dec($id);
$strsql = 'SELECT url FROM `' . $url_tab . '` WHERE `id`=' . $id;
$result = mysql_db_query($mysql_database, $strsql, $db);
$row = mysql_fetch_row($result);
if ($row['0']) {
    header('location:' . base64_decode($row['0']));
} else {
    header('location:http://www.xunlitao.com');
}
?>